.class public Lcom/estrongs/android/ui/view/RoundAngleImageView;
.super Landroidx/appcompat/widget/AppCompatImageView;
.source "RoundAngleImageView.java"


# instance fields
.field private a:I

.field private b:I

.field private c:I

.field private d:I

.field e:F

.field f:F


# virtual methods
.method protected onDraw(Landroid/graphics/Canvas;)V
    .locals 5

    .line 1
    iget v0, p0, Lcom/estrongs/android/ui/view/RoundAngleImageView;->a:I

    iget v1, p0, Lcom/estrongs/android/ui/view/RoundAngleImageView;->d:I

    invoke-static {v0, v1}, Ljava/lang/Math;->max(II)I

    move-result v0

    .line 2
    iget v1, p0, Lcom/estrongs/android/ui/view/RoundAngleImageView;->b:I

    iget v2, p0, Lcom/estrongs/android/ui/view/RoundAngleImageView;->c:I

    invoke-static {v1, v2}, Ljava/lang/Math;->max(II)I

    move-result v1

    add-int/2addr v0, v1

    .line 3
    iget v1, p0, Lcom/estrongs/android/ui/view/RoundAngleImageView;->a:I

    iget v2, p0, Lcom/estrongs/android/ui/view/RoundAngleImageView;->b:I

    invoke-static {v1, v2}, Ljava/lang/Math;->max(II)I

    move-result v1

    .line 4
    iget v2, p0, Lcom/estrongs/android/ui/view/RoundAngleImageView;->d:I

    iget v3, p0, Lcom/estrongs/android/ui/view/RoundAngleImageView;->c:I

    invoke-static {v2, v3}, Ljava/lang/Math;->max(II)I

    move-result v2

    add-int/2addr v1, v2

    .line 5
    iget v2, p0, Lcom/estrongs/android/ui/view/RoundAngleImageView;->e:F

    int-to-float v0, v0

    cmpl-float v0, v2, v0

    if-ltz v0, :cond_0

    iget v0, p0, Lcom/estrongs/android/ui/view/RoundAngleImageView;->f:F

    int-to-float v1, v1

    cmpl-float v0, v0, v1

    if-lez v0, :cond_0

    .line 6
    new-instance v0, Landroid/graphics/Path;

    invoke-direct {v0}, Landroid/graphics/Path;-><init>()V

    .line 7
    iget v1, p0, Lcom/estrongs/android/ui/view/RoundAngleImageView;->a:I

    int-to-float v1, v1

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Path;->moveTo(FF)V

    .line 8
    iget v1, p0, Lcom/estrongs/android/ui/view/RoundAngleImageView;->e:F

    iget v3, p0, Lcom/estrongs/android/ui/view/RoundAngleImageView;->b:I

    int-to-float v3, v3

    sub-float/2addr v1, v3

    invoke-virtual {v0, v1, v2}, Landroid/graphics/Path;->lineTo(FF)V

    .line 9
    iget v1, p0, Lcom/estrongs/android/ui/view/RoundAngleImageView;->e:F

    iget v3, p0, Lcom/estrongs/android/ui/view/RoundAngleImageView;->b:I

    int-to-float v3, v3

    invoke-virtual {v0, v1, v2, v1, v3}, Landroid/graphics/Path;->quadTo(FFFF)V

    .line 10
    iget v1, p0, Lcom/estrongs/android/ui/view/RoundAngleImageView;->e:F

    iget v3, p0, Lcom/estrongs/android/ui/view/RoundAngleImageView;->f:F

    iget v4, p0, Lcom/estrongs/android/ui/view/RoundAngleImageView;->c:I

    int-to-float v4, v4

    sub-float/2addr v3, v4

    invoke-virtual {v0, v1, v3}, Landroid/graphics/Path;->lineTo(FF)V

    .line 11
    iget v1, p0, Lcom/estrongs/android/ui/view/RoundAngleImageView;->e:F

    iget v3, p0, Lcom/estrongs/android/ui/view/RoundAngleImageView;->f:F

    iget v4, p0, Lcom/estrongs/android/ui/view/RoundAngleImageView;->c:I

    int-to-float v4, v4

    sub-float v4, v1, v4

    invoke-virtual {v0, v1, v3, v4, v3}, Landroid/graphics/Path;->quadTo(FFFF)V

    .line 12
    iget v1, p0, Lcom/estrongs/android/ui/view/RoundAngleImageView;->d:I

    int-to-float v1, v1

    iget v3, p0, Lcom/estrongs/android/ui/view/RoundAngleImageView;->f:F

    invoke-virtual {v0, v1, v3}, Landroid/graphics/Path;->lineTo(FF)V

    .line 13
    iget v1, p0, Lcom/estrongs/android/ui/view/RoundAngleImageView;->f:F

    iget v3, p0, Lcom/estrongs/android/ui/view/RoundAngleImageView;->d:I

    int-to-float v3, v3

    sub-float v3, v1, v3

    invoke-virtual {v0, v2, v1, v2, v3}, Landroid/graphics/Path;->quadTo(FFFF)V

    .line 14
    iget v1, p0, Lcom/estrongs/android/ui/view/RoundAngleImageView;->a:I

    int-to-float v1, v1

    invoke-virtual {v0, v2, v1}, Landroid/graphics/Path;->lineTo(FF)V

    .line 15
    iget v1, p0, Lcom/estrongs/android/ui/view/RoundAngleImageView;->a:I

    int-to-float v1, v1

    invoke-virtual {v0, v2, v2, v1, v2}, Landroid/graphics/Path;->quadTo(FFFF)V

    .line 16
    invoke-virtual {p1, v0}, Landroid/graphics/Canvas;->clipPath(Landroid/graphics/Path;)Z

    .line 17
    :cond_0
    invoke-super {p0, p1}, Landroid/widget/ImageView;->onDraw(Landroid/graphics/Canvas;)V

    return-void
.end method

.method protected onLayout(ZIIII)V
    .locals 0

    .line 1
    invoke-super/range {p0 .. p5}, Landroid/widget/ImageView;->onLayout(ZIIII)V

    .line 2
    invoke-virtual {p0}, Landroid/widget/ImageView;->getWidth()I

    move-result p1

    int-to-float p1, p1

    iput p1, p0, Lcom/estrongs/android/ui/view/RoundAngleImageView;->e:F

    .line 3
    invoke-virtual {p0}, Landroid/widget/ImageView;->getHeight()I

    move-result p1

    int-to-float p1, p1

    iput p1, p0, Lcom/estrongs/android/ui/view/RoundAngleImageView;->f:F

    return-void
.end method
